From: Adel Gadllah Date: Wed, 30 Mar 2011 09:44:53 +0000 (+0200) Subject: telepathyClient: Fix JS warning triggered by undeclared variable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8359 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=57a332bb08ae870dfedaa3dfe8509a8fe3ce61a6;p=gnome-shell.git telepathyClient: Fix JS warning triggered by undeclared variable https://bugzilla.gnome.org/show_bug.cgi?id=646205 --- diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index 0b33e8602..0a3f6b724 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -473,6 +473,8 @@ Notification.prototype = { var daysAgo = (now.getTime() - date.getTime()) / (24 * 60 * 60 * 1000); + let format; + // Show a week day and time if date is in the last week if (daysAgo < 1 || (daysAgo < 7 && now.getDay() != date.getDay())) { /* Translators: this is a time format string followed by a date.